package struts.ext.returntype.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForward;

/**
 * 处理request
 * @author xueshishasha
 *
 */

public interface Handler {
	
	/**
	 * 处理Action返回的结果，并生成ActionForward
	 * @param request  
	 * @param response
	 * @param retValue  action方法返回的结果，可以是ActionForward,String,javabean或者集合类型等等。
	 * @return
	 */
	public ActionForward handle(HttpServletRequest request, 
					HttpServletResponse response, Object retValue)  throws Exception;
}
